package com.cl.entity;

import java.io.Serializable;

import javax.persistence.*;

import org.hibernate.annotations.Type;

import com.cl.entity.common.DBObject;

import java.util.Date;


/**
 * The persistent class for the CC_SYNC database table.
 * 
 */
@Entity
@Table(name="CC_SYNC")
public class CcSync implements Serializable, DBObject {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="CC_SYNC_ID_GENERATOR", sequenceName="CC_SYNC_SEQ",allocationSize=1,initialValue=1)
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="CC_SYNC_ID_GENERATOR")
	private Long id;

	@Lob
	@Type(type = "org.hibernate.type.StringClobType")
    @Column(name="DESCRIPTION", columnDefinition="CLOB", nullable=true)
	@Transient
	private String description;

	private String en;

	private String ip;

	private String keyval;

	private String oper;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="TM_CREATE")
	private Date tmCreate;

	private String userid;

	public CcSync() {
	}

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getEn() {
		return this.en;
	}

	public void setEn(String en) {
		this.en = en;
	}

	public String getIp() {
		return this.ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public String getKeyval() {
		return this.keyval;
	}

	public void setKeyval(String keyval) {
		this.keyval = keyval;
	}

	public String getOper() {
		return this.oper;
	}

	public void setOper(String oper) {
		this.oper = oper;
	}

	public Date getTmCreate() {
		return this.tmCreate;
	}

	public void setTmCreate(Date tmCreate) {
		this.tmCreate = tmCreate;
	}

	public String getUserid() {
		return this.userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}

	@Override
	public Object getPrimaryId() {
		return this.id;
	}

	@Override
	public void setDcCreate(Date dcCreate) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public Date getDcCreate() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void setLastUpdate(Date lastUpdate) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public Date getLastUpdate() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void setDcEditor0(String dcEditor0) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public String getDcEditor0() {
		// TODO Auto-generated method stub
		return null;
	}

}